package com.ruoyi.core.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * batch_core对象 batch_activation_code_summary
 *
 * @author ruoyi
 * @date 2020-09-28
 */
public class BatchActivationCodeSummary extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 激活码批次id
     */
    private Long id;

    /**
     * 激活码数量
     */
    @Excel(name = "激活码数量")
    private Long quantity;

    /**
     * 时效片段
     */
    @Excel(name = "时效片段")
    private Long segment;

    /**
     * 时效单位
     */
    @Excel(name = "时效单位")
    private SegmentTimeUnit timeUnit;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setSegment(Long segment) {
        this.segment = segment;
    }

    public Long getSegment() {
        return segment;
    }

    public SegmentTimeUnit getTimeUnit() {
        return timeUnit;
    }

    public void setTimeUnit(SegmentTimeUnit timeUnit) {
        this.timeUnit = timeUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("quantity", getQuantity()).append("segment", getSegment())
                                                                        .append("timeUnit", getTimeUnit()).append("createTime", getCreateTime()).toString();
    }
}
